<?php
/**
 * 二维码参数设置
 *
 * @version        $Id: ratingdata_edit.php 1 10:59 2014年2月28日 by [织梦技术]-土匪 $
 * @copyright      Copyright (c) 2013 - 2014, 织梦技术研究中心, Inc.
 * @license        http://www.dedejs.com
 * @link           http://bbs.dedejs.com
 */
require_once(dirname(__FILE__)."/config.php");
require_once DEDEINC."/arc.partview.class.php";
define('PLUS_QRCODE_VER','1.0.0');

CheckPurview('plus_自动生成二维码插件');
if(empty($dopost)) $dopost = "";

if($dopost=="saveedit")
{
	require_once DEDEINC.'/request.class.php';
	$request = new Request();
	$request->Init();
    $id = preg_replace("#[^0-9]#", "", $request->Item('id', 0));
    $query = "UPDATE `#@__qrcodedata` SET urltype='$urltype',codesize='$codesize',showlogo='$showlogo',codelogo='$codelogo' WHERE id='1' ";
    $dsql->ExecuteNoneQuery($query);
    ShowMsg("成功更改二维码参数！",'qrcode_edit.php');
    exit();
}
$myData = $dsql->GetOne("SELECT #@__qrcodedata.* FROM #@__qrcodedata");
include DedeInclude('templets/qrcode_edit.htm');